// vim:sw=4:ai:aw

static const char sccsid[] = "@(#)asserts.c	2.2	AKK/CII	2007/02/01 21:07:56";

#include <stdio.h>	// printf
#include <stdlib.h>	// abort

void	asserts( const char * file, const int line, const char * func,
		 const int outcome, const char * type, const char * expr )
{
    if (outcome)
	return;
    if (func)
	printf("%s[%d] %s\n\t%s %s failed:\n",
			file, line, func, type, expr );
    else
	printf("%s[%d] %s %s failed:\n",
			file, line, type, expr );
    abort();
}
